//
//  UILabel+extention.swift
//  Weibo
//
//  Created by 唐润欣 on 16/6/17.
//  Copyright © 2016年 唐润欣. All rights reserved.
//

//UILabel+extention.swift:13:14: Type of expression is ambiguous without more context:代表我们自己定义构造器和UILable自已的构造器有冲突

import UIKit

extension UILabel {
    
    convenience init(text: String, textColor: UIColor = UIColor.darkGrayColor(), fontSize: CGFloat = 12, textAlignment: NSTextAlignment = .Left, numberOfLines: Int = 0) {
        
        self.init()
        
        self.text = text ?? ""
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        self.textAlignment = textAlignment
        self.numberOfLines = numberOfLines
    }
}
